package com.itrencai.d3_polymorphic.usb;

//实现类
public class Mouse implements USB{
    private String name;

    public String getName() {
        return name;
    }

    public Mouse(String name) {
        this.name = name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Override
    public void connect() {
        System.out.println(name+"成功连接了电脑~~~");
    }

    @Override
    public void unconnect() {
        System.out.println(name+"成功从电脑中拔出了~~~");

    }

    //独有功能
    public void dbClick(){
        System.out.println(name+"双击点亮小红心，一键三连");
    }

}
